Date: Mon, 28 Jan 2002 21:00:51 -0800 From: csr6702@rit.edu To: freebsd-questions@freebsd.org Subject: BSD setsockopt(2), IP_RECVTOS? Message-ID: <20020129050051.GA23387@hork>
index | next in thread | raw e-mail
[-- Attachment #1 --] Hi. I've got a question about BSD's setsockopt(2) call. I'm porting an application from Linux to BSD, and am running into what appears to be an incompatibility. In Linux, there is a socket option to pass the incoming TOS on packets when using the recvmsg(2) call. This is documented in ip(7). This is similar to the IP_RECVDSTADDR option under BSD, passing the message in via cmsg(3). In fact, under Linux, its called IP_RECVTOS. According to the headers and the man pages, there is no IP_RECVTOS option in FreeBSD. So, this leaves me with the question, how can I find the TOS on an incoming IP packet without using a RAW socket? I'm hoping to implement this in a portable way, rather than having different functionality for Linux and BSD. Any advise/info would be appreciated. Thanks in advance, Chris Ruvolo PS: please CC: me on reply. I'm not subscribed to the list. Thanks. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8ViyDKO6EG1hc77ERAgegAKD+ojjkyNVxFgidBh5tMI5F7Nin+ACglQCG wmpOo6J1N1E/FgOJfmNqO4c= =On+9 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020129050051.GA23387>
