mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-27 03:49:57 +00:00
Update TODO
We have now done IP_PKTINFO, but there is a potential TODO if wanting to properly honor unicast request. For now, will just do always-broadcast as the options to do unicast are more complex to do (either construct the packets or inject neigh entry manually)
This commit is contained in:
parent
f20fb70336
commit
49b8e12a01
@ -183,8 +183,8 @@ def ipfromint(numb):
|
||||
def snoop(handler, protocol=None):
|
||||
#TODO(jjohnson2): ipv6 socket and multicast for DHCPv6, should that be
|
||||
#prominent
|
||||
#TODO(jjohnson2): IP_PKTINFO, recvmsg to get the destination ip, per
|
||||
#proxydhcp.c from xCAT
|
||||
#TODO(jjohnson2): enable unicast replies. This would suggest either
|
||||
# injection into the neigh table before OFFER or using SOCK_RAW.
|
||||
net4 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
||||
net4.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
net4.setsockopt(socket.IPPROTO_IP, IP_PKTINFO, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user