]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/net/if_dl.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / Include / net / if_dl.h
diff --git a/StdLib/Include/net/if_dl.h b/StdLib/Include/net/if_dl.h
deleted file mode 100644 (file)
index 3a2104d..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*\r
- * Copyright (c) 1990, 1993\r
- *     The Regents of the University of California.  All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- *    notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- *    notice, this list of conditions and the following disclaimer in the\r
- *    documentation and/or other materials provided with the distribution.\r
- * 3. All advertising materials mentioning features or use of this software\r
- *    must display the following acknowledgement:\r
- *     This product includes software developed by the University of\r
- *     California, Berkeley and its contributors.\r
- * 4. Neither the name of the University nor the names of its contributors\r
- *    may be used to endorse or promote products derived from this software\r
- *    without specific prior written permission.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\r
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\r
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\r
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\r
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\r
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\r
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\r
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\r
- * SUCH DAMAGE.\r
- *\r
- *     @(#)if_dl.h     8.1 (Berkeley) 6/10/93\r
- * $Id: if_dl.h,v 1.1.1.1 2006/05/30 06:12:42 hhzhou Exp $\r
- */\r
-\r
-#ifndef _NET_IF_DL_H_\r
-#define _NET_IF_DL_H_\r
-\r
-/*\r
- * A Link-Level Sockaddr may specify the interface in one of two\r
- * ways: either by means of a system-provided index number (computed\r
- * anew and possibly differently on every reboot), or by a human-readable\r
- * string such as "il0" (for managerial convenience).\r
- *\r
- * Census taking actions, such as something akin to SIOCGCONF would return\r
- * both the index and the human name.\r
- *\r
- * High volume transactions (such as giving a link-level ``from'' address\r
- * in a recvfrom or recvmsg call) may be likely only to provide the indexed\r
- * form, (which requires fewer copy operations and less space).\r
- *\r
- * The form and interpretation  of the link-level address is purely a matter\r
- * of convention between the device driver and its consumers; however, it is\r
- * expected that all drivers for an interface of a given if_type will agree.\r
- */\r
-\r
-/*\r
- * Structure of a Link-Level sockaddr:\r
- */\r
-struct sockaddr_dl {\r
-       u_char  sdl_len;        /* Total length of sockaddr */\r
-       u_char  sdl_family;     /* AF_DLI */\r
-       u_short sdl_index;      /* if != 0, system given index for interface */\r
-       u_char  sdl_type;       /* interface type */\r
-       u_char  sdl_nlen;       /* interface name length, no trailing 0 reqd. */\r
-       u_char  sdl_alen;       /* link level address length */\r
-       u_char  sdl_slen;       /* link layer selector length */\r
-       char    sdl_data[12];   /* minimum work area, can be larger;\r
-                                  contains both if name and ll address */\r
-};\r
-\r
-#define LLADDR(s) ((caddr_t)((s)->sdl_data + (s)->sdl_nlen))\r
-\r
-#ifndef KERNEL\r
-\r
-#include <sys/EfiCdefs.h>\r
-\r
-__BEGIN_DECLS\r
-void   link_addr (const char *, struct sockaddr_dl *);\r
-char   *link_ntoa (const struct sockaddr_dl *);\r
-__END_DECLS\r
-\r
-#endif /* !KERNEL */\r
-\r
-#endif\r