if_var.h (6064c5d3623d78ce57fe1be9de9e613953534ce1) | if_var.h (f6dfe47a145263dc5eb67fa4789925ab708709bc) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 103 unchanged lines hidden (view full) --- 112 * Structure defining a network interface. 113 * 114 * (Would like to call this struct ``if'', but C isn't PL/1.) 115 */ 116 117struct ifnet { 118 void *if_softc; /* pointer to driver state */ 119 void *if_l2com; /* pointer to protocol bits */ | 1/*- 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 103 unchanged lines hidden (view full) --- 112 * Structure defining a network interface. 113 * 114 * (Would like to call this struct ``if'', but C isn't PL/1.) 115 */ 116 117struct ifnet { 118 void *if_softc; /* pointer to driver state */ 119 void *if_l2com; /* pointer to protocol bits */ |
120 struct vnet *if_vnet; /* pointer to network stack instance */ |
|
120 TAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained */ 121 char if_xname[IFNAMSIZ]; /* external name (name + unit) */ 122 const char *if_dname; /* driver name */ 123 int if_dunit; /* unit or IF_DUNIT_NONE */ 124 u_int if_refcount; /* reference count */ 125 struct ifaddrhead if_addrhead; /* linked list of addresses per if */ 126 /* 127 * if_addrhead is the list of all addresses associated to --- 686 unchanged lines hidden --- | 121 TAILQ_ENTRY(ifnet) if_link; /* all struct ifnets are chained */ 122 char if_xname[IFNAMSIZ]; /* external name (name + unit) */ 123 const char *if_dname; /* driver name */ 124 int if_dunit; /* unit or IF_DUNIT_NONE */ 125 u_int if_refcount; /* reference count */ 126 struct ifaddrhead if_addrhead; /* linked list of addresses per if */ 127 /* 128 * if_addrhead is the list of all addresses associated to --- 686 unchanged lines hidden --- |