diff options
author | paul <paul> | 2005-06-03 18:01:50 +0000 |
---|---|---|
committer | paul <paul> | 2005-06-03 18:01:50 +0000 |
commit | 4f488eb231632183b43d7124b43bda343fd8b2f4 (patch) | |
tree | 1f6fe2322536a7154081a4cf57a305832dd3bef1 /lib/getopt.h | |
parent | 051e9e7adfe18f704fd716c3ea6278bf55f6a85d (diff) | |
download | quagga-4f488eb231632183b43d7124b43bda343fd8b2f4.tar.bz2 quagga-4f488eb231632183b43d7124b43bda343fd8b2f4.tar.xz |
2005-06-03 Paul Jakma <paul.jakma@sun.com>
* ripd.c: (rip_create_socket) Make it static.
Remove the getservbyname stuff, as RFC2453 3.9.2 says non-RIP
port messages should be discarded, quagga doesnt accept them,
no need to lookup port.
Take a 'to' argument, if socket should be bound to something else.
setsockopt_so_recvbuf might need privs, move it to the raised
privileges section.
dont forget to close the socket if bind fails.
(rip_send_packet) use strncpy, just in case (address is under
our control anyway, but still).
dont duplicate rip_create_socket - just use it.
(rip_create) rip_create_socket takes an argument now, modify.
Diffstat (limited to 'lib/getopt.h')
0 files changed, 0 insertions, 0 deletions