1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
-
-
- #include <stdint.h>
- #include <byteswap.h>
- #include <gpxe/netdevice.h>
- #include <gpxe/iobuf.h>
- #include <gpxe/if_ether.h>
- #include <gpxe/rarp.h>
-
-
-
-
- static int rarp_rx ( struct io_buffer *iobuf,
- struct net_device *netdev __unused,
- const void *ll_source __unused ) {
- free_iob ( iobuf );
- return 0;
- }
-
-
-
- static const char * rarp_ntoa ( const void *net_addr __unused ) {
- return "<RARP>";
- }
-
-
- struct net_protocol rarp_protocol __net_protocol = {
- .name = "RARP",
- .net_proto = htons ( ETH_P_RARP ),
- .rx = rarp_rx,
- .ntoa = rarp_ntoa,
- };
|