bpf.c (150168) | bpf.c (160787) |
---|---|
1/*- 2 * Copyright (c) 2005 Christian S.J. Peron 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2005 Christian S.J. Peron 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.bin/netstat/bpf.c 150168 2005-09-15 16:09:24Z csjp $ | 26 * $FreeBSD: head/usr.bin/netstat/bpf.c 160787 2006-07-28 16:09:19Z yar $ |
27 */ 28#include <sys/types.h> 29#include <sys/protosw.h> 30#include <sys/socket.h> 31#include <sys/sysctl.h> 32#include <sys/param.h> 33#include <sys/user.h> 34 35#include <net/if.h> 36#include <net/if_var.h> 37#include <net/bpfdesc.h> 38#include <arpa/inet.h> 39 40#include <err.h> 41#include <errno.h> | 27 */ 28#include <sys/types.h> 29#include <sys/protosw.h> 30#include <sys/socket.h> 31#include <sys/sysctl.h> 32#include <sys/param.h> 33#include <sys/user.h> 34 35#include <net/if.h> 36#include <net/if_var.h> 37#include <net/bpfdesc.h> 38#include <arpa/inet.h> 39 40#include <err.h> 41#include <errno.h> |
42#include <stdint.h> |
|
42#include <stdio.h> 43#include <stdlib.h> 44#include <string.h> 45#include <unistd.h> 46 47#include "netstat.h" 48 49/* print bpf stats */ --- 75 unchanged lines hidden --- | 43#include <stdio.h> 44#include <stdlib.h> 45#include <string.h> 46#include <unistd.h> 47 48#include "netstat.h" 49 50/* print bpf stats */ --- 75 unchanged lines hidden --- |