digitalmars.D.bugs - [Issue 11174] New: Both AF_PACKET and SO_BINDTODEVICE undefined
- d-bugmail puremagic.com (23/23) Oct 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11174
- d-bugmail puremagic.com (14/23) Oct 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11174
http://d.puremagic.com/issues/show_bug.cgi?id=11174 Summary: Both AF_PACKET and SO_BINDTODEVICE undefined Product: D Version: unspecified Platform: x86_64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: druntime AssignedTo: nobody puremagic.com ReportedBy: daniel350 bigpond.com AF_PACKET and SO_BINDTODEVICE are both undefined in any/all of the socket modules. Although they are not standard, they should still be available on platforms that support them. Their definitions (at least on my platform) are the following: AF_PACKET = 17; SO_BINDTODEVICE = 25; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 05 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11174AF_PACKET and SO_BINDTODEVICE are both undefined in any/all of the socket modules. Although they are not standard, they should still be available on platforms that support them. Their definitions (at least on my platform) are the following: AF_PACKET = 17; SO_BINDTODEVICE = 25;These constants can be found (at least in my machine), at the following location: `/usr/include/bits/socket.h`. Also, all of the `/usr/include/linux/if_ether.h` constants would be very useful for this also. Such as (in my case) ETH_P_ALL. Offhand reference: http://www.scs.stanford.edu/histar/src/uinc/linux/if_ether.h It almost feels like we just need to have a way of automatically merging these constants into the appropriate D files... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 05 2013