diff options
author | rsc <devnull@localhost> | 2005-12-31 19:34:53 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-12-31 19:34:53 +0000 |
commit | 07683d0ef7798fdf4289ad1f9496a824f4178362 (patch) | |
tree | 4a9115caee3418af09fa8b3db4c0c688e21746aa | |
parent | ad79121be556a8ce2e8a44eb2ccd1f19cc0e66fb (diff) | |
download | plan9port-07683d0ef7798fdf4289ad1f9496a824f4178362.tar.gz plan9port-07683d0ef7798fdf4289ad1f9496a824f4178362.tar.bz2 plan9port-07683d0ef7798fdf4289ad1f9496a824f4178362.zip |
new
-rw-r--r-- | include/ip.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ip.h b/include/ip.h index b6843e70..7a4df5f1 100644 --- a/include/ip.h +++ b/include/ip.h @@ -64,6 +64,7 @@ struct Ipifc /* per ip interface */ int index; /* number of interface in ipifc dir */ char dev[64]; + uchar ether[6]; uchar sendra6; /* on == send router adv */ uchar recvra6; /* on == rcv router adv */ int mtu; @@ -79,7 +80,7 @@ struct Ipifc */ enum { - Udphdrsize= 36, /* size of a Udphdr */ + Udphdrsize= 52, /* size of a Udphdr */ }; typedef struct Udphdr Udphdr; @@ -87,6 +88,7 @@ struct Udphdr { uchar raddr[IPaddrlen]; /* remote address and port */ uchar laddr[IPaddrlen]; /* local address and port */ + uchar ifcaddr[IPaddrlen]; /* address of ifc message was received from */ uchar rport[2]; uchar lport[2]; }; @@ -107,6 +109,7 @@ long udpread(int, Udphdr*, void*, long); long udpwrite(int, Udphdr*, void*, long); Ipifc* readipifc(char*, Ipifc*, int); +void freeipifc(Ipifc*); void hnputv(void*, uvlong); void hnputl(void*, uint); |