diff options
author | Ted Lemon <source@isc.org> | 1996-05-22 07:30:19 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1996-05-22 07:30:19 +0000 |
commit | 0a5d686085661956441338527336b432a7d24e56 (patch) | |
tree | c991c438cc21b547113b24dfcc8d2a60c706bea4 /common/raw.c | |
parent | f2e2f2500bcd8cf168ca83b991a442a7cd6c68f0 (diff) | |
download | isc-dhcp-0a5d686085661956441338527336b432a7d24e56.tar.gz |
update interface configure banner; add from addr to send_packet
Diffstat (limited to 'common/raw.c')
-rw-r--r-- | common/raw.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/raw.c b/common/raw.c index 59d6d624..39b4a93a 100644 --- a/common/raw.c +++ b/common/raw.c @@ -95,14 +95,16 @@ void if_register_send (info, interface) error ("Can't set IP_HDRINCL flag: %m"); info -> wfdesc = sock; - note ("Sending on Raw/%s", piaddr (info -> address)); + note ("Sending on Raw/%s/%s", + info -> name, info -> shared_network -> name); } -size_t send_packet (interface, packet, raw, len, to, hto) +size_t send_packet (interface, packet, raw, len, from, to, hto) struct interface_info *interface; struct packet *packet; struct dhcp_packet *raw; size_t len; + struct in_addr from; struct sockaddr_in *to; struct hardware *hto; { @@ -111,7 +113,7 @@ size_t send_packet (interface, packet, raw, len, to, hto) struct iovec iov [2]; /* Assemble the headers... */ - assemble_udp_ip_header (interface, buf, &bufp, + assemble_udp_ip_header (interface, buf, &bufp, from.s_addr, to -> sin_addr.s_addr, to -> sin_port, (unsigned char *)raw, len); |