[dhcp-agent-commits] dhcp-agent/src dhcp-rawnet.c,1.11,1.12
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-07-06 05:37:26
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv21212/src Modified Files: dhcp-rawnet.c Log Message: fix to dhcp-rawnet with mtu passing Index: dhcp-rawnet.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-rawnet.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** dhcp-rawnet.c 5 Jul 2003 19:18:17 -0000 1.11 --- dhcp-rawnet.c 6 Jul 2003 05:37:23 -0000 1.12 *************** *** 219,223 **** net->device = xstrdup(device); net->pcap_filter = xstrdup(filter); - net->packet_data = xcalloc(mtu); net->promiscuous = promiscuous; net->mtu = mtu; --- 219,222 ---- *************** *** 265,268 **** --- 264,270 ---- net->mtu = rawnet_get_mtu(net); } + + /* now allocate packet data since we know the mtu. */ + net->packet_data = xcalloc(net->mtu); /* any other value of retval and the interface is already up. */ |