X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=qemu%2Froms%2Fipxe%2Fsrc%2Finclude%2Fipxe%2Fudp.h;fp=qemu%2Froms%2Fipxe%2Fsrc%2Finclude%2Fipxe%2Fudp.h;h=5717ef2134686ce133476ea3f85dbca53df09aac;hb=e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb;hp=0000000000000000000000000000000000000000;hpb=9ca8dbcc65cfc63d6f5ef3312a33184e1d726e00;p=kvmfornfv.git diff --git a/qemu/roms/ipxe/src/include/ipxe/udp.h b/qemu/roms/ipxe/src/include/ipxe/udp.h new file mode 100644 index 000000000..5717ef213 --- /dev/null +++ b/qemu/roms/ipxe/src/include/ipxe/udp.h @@ -0,0 +1,45 @@ +#ifndef _IPXE_UDP_H +#define _IPXE_UDP_H + +/** @file + * + * UDP protocol + * + * This file defines the iPXE UDP API. + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include +#include +#include +#include + +struct interface; +struct sockaddr; + +/** + * UDP constants + */ + +/** + * A UDP header + */ +struct udp_header { + /** Source port */ + uint16_t src; + /** Destination port */ + uint16_t dest; + /** Length */ + uint16_t len; + /** Checksum */ + uint16_t chksum; +}; + +extern int udp_open_promisc ( struct interface *xfer ); +extern int udp_open ( struct interface *xfer, struct sockaddr *peer, + struct sockaddr *local ); + +#endif /* _IPXE_UDP_H */ +