Deleted Added
full compact
ifvlan.c (189096) ifvlan.c (194799)
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 189096 2009-02-27 00:31:34Z rpaulo $";
59 "$FreeBSD: head/sbin/ifconfig/ifvlan.c 194799 2009-06-23 23:49:52Z delphij $";
60#endif
61
62#define NOTAG ((u_short) -1)
63
64static struct vlanreq params = {
65 .vlr_tag = NOTAG,
66};
67

--- 119 unchanged lines hidden (view full) ---

187 .af_af = AF_UNSPEC,
188 .af_other_status = vlan_status,
189};
190
191static __constructor void
192vlan_ctor(void)
193{
194#define N(a) (sizeof(a) / sizeof(a[0]))
60#endif
61
62#define NOTAG ((u_short) -1)
63
64static struct vlanreq params = {
65 .vlr_tag = NOTAG,
66};
67

--- 119 unchanged lines hidden (view full) ---

187 .af_af = AF_UNSPEC,
188 .af_other_status = vlan_status,
189};
190
191static __constructor void
192vlan_ctor(void)
193{
194#define N(a) (sizeof(a) / sizeof(a[0]))
195 int i;
195 size_t i;
196
197 for (i = 0; i < N(vlan_cmds); i++)
198 cmd_register(&vlan_cmds[i]);
199 af_register(&af_vlan);
200 callback_register(vlan_cb, NULL);
201 clone_setdefcallback("vlan", vlan_create);
202#undef N
203}
196
197 for (i = 0; i < N(vlan_cmds); i++)
198 cmd_register(&vlan_cmds[i]);
199 af_register(&af_vlan);
200 callback_register(vlan_cb, NULL);
201 clone_setdefcallback("vlan", vlan_create);
202#undef N
203}