Displaying 2 results from an estimated 2 matches for "rta_gateway".
Did you mean:
rt_gateway
2005 Oct 06
1
buffer overflow in ip
This comse from iproute-ss050901, rebuilt on FC4 with -fortify-source
option. Seems like ip has a buffer overflow which sometimes causes a
segfault..
will try to look at it tmrw, so far here''s my gdb output.
$ gdb ip
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome
2006 Jul 25
3
problem in Route add using netlink
...CAST;
rtMsg->rtm_protocol = RTPROT_UNSPEC;
rtMsg->rtm_flags = RTM_F_NOTIFY;
fillRoute (&rinfo, dstAddr, srcAddr, gateway, ifName);
addAttr (nlMsg, BUFSIZE, RTA_DST,
&rinfo.dstAddr, 4);
addAttr (nlMsg, BUFSIZE, RTA_GATEWAY,
&rinfo.gateWay, 4);
/* Send the request */
if((val = send(sock, nlMsg, nlMsg->nlmsg_len,0 )) < 0){
printf("Write To Socket Failed...\n");
return -1;
}
printf (" No of Bytes sent %d \n...