Get/Set IP/UDP options from/to UDP datagram socket.
- From: "Rohan Sen" <senrohan@xxxxxxxxx>
- Date: Wed, 30 May 2007 20:28:56 +0530
Hi Everybody,
I had a code in Linux using datagram sockets to run over UDP and get/set
some ancillary options as well. Following are those options.
The socket has been opened using the following call.
sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
1> To send UDP datagram with UDP-Checksum
2> To send UDP datagram without UDP-Checksum
3> To accept UDP datagram with UDP-Checksum
4> To accept UDP datagram without UDP-Checksum
5> Join the socket to the supplied multicast group on the specified
interface.
6> Get IP TTL from a received udp datagram.
7> Set IP TTL to a sent udp dataram.
8> Get IP TOS from a received udp datagram.
9> Set IP TOS to a sent udp datagram.
10> Get IP Option from a received udp datagram.
11> Set IP Option to a sent udp datagram.
12> Get all ICMP error message received from IP layer
13> Get source and destination IP address from the received UDP datagram.
These options do not seem to be compatible with FreeBSD implementation of
sockets.
Could you please let me know any reference, book or any material which I can
refer to for getting information about how to perform these tasks in
FreeBSD 6.2?
--
thanks and regards,
Rohan Sen
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Prev by Date: Re: [PATCH] ng_pf and l7 filtering possibility with PF
- Next by Date: Commands available for opensuse@opensuse.org
- Previous by thread: Can someone please create a working IGMP proxy for FreeBSD 6.2? [signed]
- Next by thread: Commands available for opensuse@opensuse.org
- Index(es):