/freebsd-11-stable/sys/netipsec/ |
H A D | udpencap.c | 246 udp_ipsec_adjust_cksum(struct mbuf *m, struct secasvar *sav, int proto, argument 253 IPSEC_ASSERT(proto == IPPROTO_UDP || proto == IPPROTO_TCP, 254 ("unexpected protocol %u", proto)); 256 if (proto == IPPROTO_UDP) 267 if (proto == IPPROTO_UDP && cksum == 0) 272 if (proto == IPPROTO_TCP) { 285 htons(m->m_pkthdr.len - skip + proto)); 288 (proto == IPPROTO_UDP) ? CSUM_UDP: CSUM_TCP;
|
/freebsd-11-stable/tests/sys/netgraph/ |
H A D | vlan_rotate.c | 47 uint16_t proto; member in struct:vlan 106 msg.vlan[len].proto = htons(ETHERTYPE_IP); 168 v[i] = ntohs(f->vlan[i].proto); 199 msg.vlan[i].proto = htons(ETHERTYPE_VLAN); 202 msg.vlan[i].proto = htons(ETHERTYPE_QINQ); 205 msg.vlan[i].proto = htons(ETHERTYPE_8021Q9100); 209 msg.vlan[i].proto = htons(ETHERTYPE_IP); 212 vlan[i] = msg.vlan[i].proto; 287 msg.vlan[len].proto = htons(ETHERTYPE_IP);
|
/freebsd-11-stable/contrib/ipfilter/rules/ |
H A D | BASIC_2.FW | 59 pass in log quick proto tcp all flags S/SA keep state group 200 65 pass in log quick proto icmp all keep state group 200 70 block return-rst in log proto tcp from any to any flags S/SA group 100 72 block return-icmp(net-unr) in proto udp all group 100
|
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | net.h | 43 sock_create_kern(int family, int type, int proto, struct socket **res) argument 45 return -socreate(family, res, type, proto, curthread->td_ucred,
|
/freebsd-11-stable/sys/contrib/ngatm/netnatm/api/ |
H A D | unisap.h | 57 u_int proto:5; /* the protocol */ member in struct:unisve_blli_id2 63 u_int proto:5; /* L3 protocol */ member in struct:unisve_blli_id3
|
H A D | unisap.c | 184 return (s1->proto == s2->proto && 185 (s1->proto != UNI_BLLI_L2_USER || s1->user == s2->user)); 194 if (s1->proto != s2->proto) 196 if (s1->proto == UNI_BLLI_L3_USER) 198 if (s1->proto == UNI_BLLI_L3_TR9577) { 328 if (blli->l2 != sap->blli_id2.proto) 355 if (blli->l3 != sap->blli_id3.proto)
|
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/ |
H A D | Makefile.am | 18 proto.c \
|
/freebsd-11-stable/crypto/heimdal/lib/krb5/ |
H A D | krbhst.c | 52 * `proto', `proto', `realm' using `dns_type'. 59 const char *proto, const char *service, int port) 71 proto_num = string_to_proto(proto); 75 proto); 82 def_port = ntohs(krb5_getportbyname (context, service, proto, 88)); 86 snprintf(domain, sizeof(domain), "_%s._%s.%s.", service, proto, realm); 125 hi->proto = proto_num; 208 hi->proto = krbhst_get_default_proto(kd); 211 hi->proto 57 srv_find_realm(krb5_context context, krb5_krbhst_info ***res, int *count, const char *realm, const char *dns_type, const char *proto, const char *service, int port) argument 327 const char *proto = ""; local 344 make_hints(struct addrinfo *hints, int proto) argument 434 srv_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *proto, const char *service) argument 486 fallback_get_hosts(krb5_context context, struct krb5_krbhst_data *kd, const char *serv_string, int port, int proto) argument [all...] |
/freebsd-11-stable/sys/arm/xscale/pxa/ |
H A D | pxa_space.c | 205 #define READ_SINGLE(type, proto, base) \ 207 proto(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset) \ 222 #define WRITE_SINGLE(type, proto, base) \ 224 proto(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, \ 238 #define READ_MULTI(type, proto, base) \ 240 proto(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, \ 255 #define WRITE_MULTI(type, proto, base) \ 257 proto(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t offset, \
|
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | wpa_supplicant.conf | 97 # key_mgmt, pairwise, group, proto variables 814 # WPA-PSK (with proto=RSN). In addition, key_mgmt=WPA-NONE (fixed group key 817 # proto=WPA, key_mgmt=WPA-NONE, pairwise=NONE, group=TKIP (or CCMP, but not 875 # proto: list of accepted protocols 887 # WPA-NONE = WPA-None for IBSS (deprecated; use proto=RSN key_mgmt=WPA-PSK 1534 proto=WPA 1545 proto=WPA 1557 proto=RSN 1633 proto=WPA RSN 1763 proto [all...] |
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | async.c | 49 #include "proto.h" 86 async_Encode(struct async *async, u_char **cp, u_char c, int proto) argument 91 if ((c < 0x20 && (proto == PROTO_LCP || (async->his_accmap & (1 << c)))) 106 int pri __unused, u_short *proto) 128 async_Encode(&p->async, &cp, *sp++, *proto); 193 u_short *proto __unused) 105 async_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp, int pri __unused, u_short *proto) argument
|
H A D | pred.c | 177 int pri __unused, u_short *proto, struct mbuf *bp) 186 orglen = m_length(bp) + 2; /* add count of proto */ 192 *cp++ = *proto >> 8; 193 *cp++ = *proto & 0377; 214 *proto = ccp_Proto(ccp); 219 Pred1Input(void *v, struct ccp *ccp, u_short *proto, struct mbuf *bp) argument 269 *proto = *pp++; 270 if (*proto & 1) { 276 *proto = (*proto << 176 Pred1Output(void *v, struct ccp *ccp, struct link *l __unused, int pri __unused, u_short *proto, struct mbuf *bp) argument [all...] |
H A D | nat_cmd.c | 54 #include "proto.h" 114 const char *proto; local 124 proto = arg->argv[arg->argn]; 125 if (strcmp(proto, "tcp") == 0) { 127 } else if (strcmp(proto, "udp") == 0) { 136 &hlocalport, proto); 143 proto); 152 &lremoteport, &hremoteport, proto); 254 prompt_Printf(arg->prompt, "proto redirect: invalid protocol\n"); 262 prompt_Printf(arg->prompt, "proto redirec 327 StrToPort(const char *str, u_short *port, const char *proto) argument 347 StrToPortRange(const char *str, u_short *low, u_short *high, const char *proto) argument 372 StrToAddrAndPort(const char *str, struct in_addr *addr, u_short *low, u_short *high, const char *proto) argument 500 nat_LayerPush(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, int pri __unused, u_short *proto) argument 517 nat_LayerPull(struct bundle *bundle, struct link *l __unused, struct mbuf *bp, u_short *proto) argument [all...] |
/freebsd-11-stable/sbin/fsck_ffs/ |
H A D | pass2.c | 281 struct direct proto; local 306 proto.d_ino = idesc->id_number; 307 proto.d_type = DT_DIR; 308 proto.d_namlen = 1; 309 (void)strcpy(proto.d_name, "."); 310 entrysize = DIRSIZ(0, &proto); 317 proto.d_reclen = dirp->d_reclen; 318 memmove(dirp, &proto, (size_t)entrysize); 323 proto.d_reclen = entrysize; 324 memmove(dirp, &proto, (size_ [all...] |
/freebsd-11-stable/contrib/blacklist/libexec/ |
H A D | blacklistd-helper | 34 proto="proto $3" 56 echo block in quick $proto from $addr/$mask to \ 73 /sbin/npfctl rule "$2" add block in final $proto from \ 80 echo "block in quick $proto from <port$6> to any $port" | \ 92 echo block in quick $proto from $addr/$mask to \
|
/freebsd-11-stable/lib/libipsec/ |
H A D | ipsec_dump_policy.c | 182 const char *proto, *mode, *level; local 192 proto = "esp"; 195 proto = "ah"; 198 proto = "ipcomp"; 201 proto = "tcp"; 261 snprintf(buf, len, "%s/%s/%s/%s", proto, mode, abuf, level); 269 snprintf(buf, len, "%s/%s/%s/%s%c%u", proto, mode, abuf, level,
|
/freebsd-11-stable/lib/libbluetooth/ |
H A D | bluetooth.c | 52 static struct protoent proto; variable in typeref:struct:protoent 194 bt_getprotobynumber(int proto) argument 200 if (p->p_proto == proto) 225 proto.p_name = p; 233 proto.p_proto = atoi(cp); 234 q = proto.p_aliases = proto_aliases; 250 return (&proto);
|
/freebsd-11-stable/sys/netinet/ |
H A D | in_gif.c | 92 in_gif_output(struct ifnet *ifp, struct mbuf *m, int proto, uint8_t ecn) argument 102 if (proto == IPPROTO_ETHERIP) 109 if (proto == IPPROTO_ETHERIP) { 127 ip->ip_p = proto; 137 in_gif_input(struct mbuf **mp, int *offp, int proto) argument 156 gif_input(m, gifp, proto, ecn); 169 in_gif_encapcheck(const struct mbuf *m, int off, int proto, void *arg) argument
|
/freebsd-11-stable/sys/netinet6/ |
H A D | in6_gif.c | 100 in6_gif_output(struct ifnet *ifp, struct mbuf *m, int proto, uint8_t ecn) argument 110 if (proto == IPPROTO_ETHERIP) 117 if (proto == IPPROTO_ETHERIP) { 137 ip6->ip6_nxt = proto; 148 in6_gif_input(struct mbuf **mp, int *offp, int proto) argument 167 gif_input(m, gifp, proto, ecn); 180 in6_gif_encapcheck(const struct mbuf *m, int off, int proto, void *arg) argument
|
/freebsd-11-stable/sys/netpfil/ipfw/pmod/ |
H A D | tcpmod.c | 125 int hlen, plen, proto; local 129 proto = ip6->ip6_nxt; 136 while (proto == IPPROTO_HOPOPTS || proto == IPPROTO_ROUTING || 137 proto == IPPROTO_DSTOPTS) { 139 proto = hbh->ip6h_nxt; 192 * NOTE: ipfw_chk() can set f_id.proto from IPv6 fragment header, 205 if (args->f_id.proto != IPPROTO_TCP ||
|
/freebsd-11-stable/contrib/sendmail/contrib/ |
H A D | etrn.pl | 112 my ($proto) = (getprotobyname('tcp'))[2]; 128 socket(S, &PF_INET, &SOCK_STREAM, $proto) 157 socket(S, &PF_INET, &SOCK_STREAM, $proto)
|
/freebsd-11-stable/sys/dev/proto/ |
H A D | proto_bus_pci.c | 43 #include <dev/proto/proto.h> 118 DRIVER_MODULE(proto, pci, proto_pci_driver, proto_devclass, NULL, NULL);
|
/freebsd-11-stable/tools/tools/ether_reflect/ |
H A D | ether_reflect.c | 67 char *proto = ETHER_TYPE_TEST; local 83 proto = optarg; 115 snprintf(&in_string[0], MAXPROG, "ether proto %s\n", proto);
|
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-cnfp.c | 80 uint8_t proto; /* IP protocol type */ member in struct:nfrec_v1 113 uint8_t proto; /* IP protocol type */ member in struct:nfrec_v5 147 uint8_t proto; /* IP protocol type */ member in struct:nfrec_v6 214 if (!ndo->ndo_nflag && (p_name = netdb_protoname(nr->proto)) != NULL) 217 ND_PRINT((ndo, "%u ", nr->proto)); 220 if (nr->proto == IPPROTO_TCP) { 310 if (!ndo->ndo_nflag && (p_name = netdb_protoname(nr->proto)) != NULL) 313 ND_PRINT((ndo, "%u ", nr->proto)); 316 if (nr->proto == IPPROTO_TCP) { 406 if (!ndo->ndo_nflag && (p_name = netdb_protoname(nr->proto)) ! [all...] |
/freebsd-11-stable/contrib/libpcap/ |
H A D | nametoaddr.c | 143 #include "os-proto.h" 303 pcap_nametoport(const char *name, int *port, int *proto) argument 409 * same port number, change the proto to PROTO_UNDEF 414 *proto = IPPROTO_TCP; 417 *proto = PROTO_UNDEF; 430 *proto = IPPROTO_UDP; 437 *proto = PROTO_UNDEF; 450 pcap_nametoportrange(const char *name, int *port1, int *port2, int *proto) argument 467 if (pcap_nametoport(cpy, port1, proto) == 0) { 471 save_proto = *proto; [all...] |