artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64717ec
)
Corrected the length field.
author
angelos
<angelos@openbsd.org>
Fri, 28 Feb 1997 01:05:17 +0000
(
01:05
+0000)
committer
angelos
<angelos@openbsd.org>
Fri, 28 Feb 1997 01:05:17 +0000
(
01:05
+0000)
sbin/ipsec/pfr/pfr.c
patch
|
blob
|
history
diff --git
a/sbin/ipsec/pfr/pfr.c
b/sbin/ipsec/pfr/pfr.c
index
0cf54ae
..
c8e5bba
100644
(file)
--- a/
sbin/ipsec/pfr/pfr.c
+++ b/
sbin/ipsec/pfr/pfr.c
@@
-74,7
+74,7
@@
char **argv;
em = (struct encap_msghdr *)&buf[0];
- em->em_msglen = EM
_MIN
LEN;
+ em->em_msglen = EM
T_IFADDR_
LEN;
em->em_version = 0;
em->em_type = EMT_IFADDR;
em->em_ifa.s_addr = inet_addr(argv[2]);
@@
-82,10
+82,4
@@
char **argv;
if (write(sd, buf, EMT_IFADDR_LEN) != EMT_IFADDR_LEN)
perror("write");
-
-
-
-
}
-
-