Lines Matching +defs:code +defs:h
8 * modification, are permitted provided that: (1) source code distributions
10 * distributions including binary code include the above copyright notice and
25 #include <sys/time.h>
26 #include <sys/socket.h>
27 #include <sys/file.h>
28 #include <sys/ioctl.h>
30 #include <net/if.h>
32 #include <netinet/in.h>
33 #include <netinet/ip.h>
35 #include <ctype.h>
36 #include <netdb.h>
37 #include <pcap.h>
38 #include <signal.h>
39 #include <stdio.h>
41 #include <netinet/if_ether.h>
42 #include "ethertype.h"
44 #include <net/ppp_defs.h>
45 #include "interface.h"
46 #include "addrtoname.h"
47 #include "extract.h"
98 uint8_t code;
129 * LCP code values (RFC1661, pp26)
294 u_int8_t code; /* PPPoE code (packet type) */
398 uint8_t code;
402 len = sizeof(pc->code);
406 pc->code = code = *(p + off);
407 if (code >= t->mincode && code <= t->maxcode)
408 printf("%s ", t->codes[code - 1]);
410 printf("unknown-%s-%u ", t->unkname, pc->code);
453 switch (pc.code) {
656 switch (pc.code) {
737 switch (pc.code) {
838 switch (pc.code) {
934 switch (pc.code) {
1070 switch (pc.code) {
1150 ppp_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
1152 u_int length = h->len;
1153 u_int caplen = h->caplen;
1158 ts_print(&h->ts);
1170 ppp_ether_if_print(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
1173 u_int l = h->caplen;
1174 u_int length = h->len;
1179 ts_print(&h->ts);
1230 default_print(p, h->caplen);
1421 ppp_hdlc_if_print(u_char *user, const struct pcap_pkthdr *h,
1424 int l = h->caplen;
1429 ts_print(&h->ts);
1434 ppp_hdlc_print(p, h->len);
1444 #include <sys/types.h>
1445 #include <sys/time.h>
1447 #include <stdio.h>
1449 #include "interface.h"
1451 ppp_if_print(user, h, p)
1453 const struct pcap_pkthdr *h;