ifvlan.c (204150) | ifvlan.c (228641) |
---|---|
1/* 2 * Copyright (c) 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 42 unchanged lines hidden (view full) --- 51#include <unistd.h> 52#include <err.h> 53#include <errno.h> 54 55#include "ifconfig.h" 56 57#ifndef lint 58static const char rcsid[] = | 1/* 2 * Copyright (c) 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 42 unchanged lines hidden (view full) --- 51#include <unistd.h> 52#include <err.h> 53#include <errno.h> 54 55#include "ifconfig.h" 56 57#ifndef lint 58static const char rcsid[] = |
59 "$FreeBSD: head/sbin/ifconfig/ifvlan.c 204150 2010-02-20 23:01:09Z yongari $"; | 59 "$FreeBSD: head/sbin/ifconfig/ifvlan.c 228641 2011-12-17 15:44:34Z bz $"; |
60#endif 61 62#define NOTAG ((u_short) -1) 63 64static struct vlanreq params = { 65 .vlr_tag = NOTAG, 66}; 67 --- 110 unchanged lines hidden (view full) --- 178 DEF_CMD("vlanmtu", IFCAP_VLAN_MTU, setifcap), 179 DEF_CMD("-vlanmtu", -IFCAP_VLAN_MTU, setifcap), 180 DEF_CMD("vlanhwtag", IFCAP_VLAN_HWTAGGING, setifcap), 181 DEF_CMD("-vlanhwtag", -IFCAP_VLAN_HWTAGGING, setifcap), 182 DEF_CMD("vlanhwfilter", IFCAP_VLAN_HWFILTER, setifcap), 183 DEF_CMD("-vlanhwfilter", -IFCAP_VLAN_HWFILTER, setifcap), 184 DEF_CMD("-vlanhwtso", -IFCAP_VLAN_HWTSO, setifcap), 185 DEF_CMD("vlanhwtso", IFCAP_VLAN_HWTSO, setifcap), | 60#endif 61 62#define NOTAG ((u_short) -1) 63 64static struct vlanreq params = { 65 .vlr_tag = NOTAG, 66}; 67 --- 110 unchanged lines hidden (view full) --- 178 DEF_CMD("vlanmtu", IFCAP_VLAN_MTU, setifcap), 179 DEF_CMD("-vlanmtu", -IFCAP_VLAN_MTU, setifcap), 180 DEF_CMD("vlanhwtag", IFCAP_VLAN_HWTAGGING, setifcap), 181 DEF_CMD("-vlanhwtag", -IFCAP_VLAN_HWTAGGING, setifcap), 182 DEF_CMD("vlanhwfilter", IFCAP_VLAN_HWFILTER, setifcap), 183 DEF_CMD("-vlanhwfilter", -IFCAP_VLAN_HWFILTER, setifcap), 184 DEF_CMD("-vlanhwtso", -IFCAP_VLAN_HWTSO, setifcap), 185 DEF_CMD("vlanhwtso", IFCAP_VLAN_HWTSO, setifcap), |
186 DEF_CMD("vlanhwcsum", IFCAP_VLAN_HWCSUM, setifcap), 187 DEF_CMD("-vlanhwcsum", -IFCAP_VLAN_HWCSUM, setifcap), |
|
186}; 187static struct afswtch af_vlan = { 188 .af_name = "af_vlan", 189 .af_af = AF_UNSPEC, 190 .af_other_status = vlan_status, 191}; 192 193static __constructor void --- 12 unchanged lines hidden --- | 188}; 189static struct afswtch af_vlan = { 190 .af_name = "af_vlan", 191 .af_af = AF_UNSPEC, 192 .af_other_status = vlan_status, 193}; 194 195static __constructor void --- 12 unchanged lines hidden --- |