Justin Pettit
f1c6daebf3
Send PORT_STATUS messages on port and link changes. Add ability to remotely enable and disable a port through the PORT_MOD message.
2008-08-22 12:47:54 -07:00
Ben Pfaff
bc286c00ea
netdev: add ability to set IPv4 addresses and add a default gateway.
2008-07-18 14:07:03 -07:00
Ben Pfaff
2afec34627
netdev: Add ability to permanently set device flags.
2008-07-18 13:55:12 -07:00
Ben Pfaff
24eb1d1546
netdev: Add more functions for manipulating device flags.
...
These are convenient for use in secchan and elsewhere.
2008-07-18 13:43:41 -07:00
Ben Pfaff
9dc091a35f
netdev: New function netdev_drain().
2008-07-18 13:42:38 -07:00
Ben Pfaff
e55d52c988
netdev: Add argument to netdev_open() to specify Ethernet type to capture.
...
This is needed by the controller, which wants to listen only for
OpenFlow discovery BPDUs on its network devices.
Also, update all existing callers.
2008-07-18 13:42:38 -07:00
Ben Pfaff
b563a5247c
netdev: Do not modify the caller's buffer in netdev_send().
...
This makes it possible to use a buffer whose contents are stack-allocated.
2008-07-18 13:42:38 -07:00
Ben Pfaff
a92ae5b340
New function netdev_arp_lookup().
...
The secchan needs to handle ARP requests from the controller itself, so
it has to translate the controller's IP address into a MAC address to
allow it to match those packets on dl_src. (OpenFlow doesn't allow us
to look into ARP packets and match on the encapsulated IP addresses, so
this is the best we can do.)
2008-07-18 13:23:23 -07:00
Ben Pfaff
23e054dcb6
New functions for getting and setting network device flags.
...
This allows us to open network devices without bringing them up
and setting them for promiscuous mode, which will be useful in the
secchan for in-band communication.
2008-05-28 10:46:54 -07:00
Ben Pfaff
6b8436f66b
Expose device IP addresses through netdev.
...
This will be useful for the secure channel later.
2008-05-28 10:46:54 -07:00
Ben Pfaff
735683ac61
Move netdev from switch to lib.
...
This is in preparation for the secure channel wanting to access
network devices.
2008-05-28 10:46:54 -07:00