/openbmc/linux/include/net/ |
H A D | gre.h | 32 int gre_add_protocol(const struct gre_protocol *proto, u8 version); 33 int gre_del_protocol(const struct gre_protocol *proto, u8 version); 38 bool *csum_err, __be16 proto, int nhs); 110 __be16 flags, __be16 proto, in gre_build_header() argument 117 skb_set_inner_protocol(skb, proto); in gre_build_header() 121 greh->protocol = proto; in gre_build_header()
|
H A D | ip6_checksum.h | 36 __u32 len, __u8 proto, __wsum csum); 39 static inline __wsum ip6_compute_pseudo(struct sk_buff *skb, int proto) in ip6_compute_pseudo() argument 43 skb->len, proto, 0)); in ip6_compute_pseudo() 86 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto);
|
/openbmc/linux/drivers/net/arcnet/ |
H A D | capmode.c | 77 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto)); in rx() 78 memcpy(pktbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto) + sizeof(int), in rx() 79 pkthdrbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto), in rx() 80 sizeof(struct archdr) - ARC_HDR_SIZE - sizeof(pkt->soft.cap.proto)); in rx() 171 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx() 172 sizeof(pkt->soft.cap.proto)); in prepare_tx() 212 ackpkt->soft.cap.proto = 0; /* using protocol 0 for acknowledge */ in ack_tx() 226 lp->outgoing.proto = NULL; in ack_tx()
|
/openbmc/linux/samples/bpf/ |
H A D | xdp_tx_iptunnel_user.c | 56 __u32 proto; in poll_stats() local 64 for (proto = 0; proto < nr_protos; proto++) { in poll_stats() 67 assert(bpf_map_lookup_elem(rxcnt_map_fd, &proto, in poll_stats() 70 sum += (values[i] - prev[proto][i]); in poll_stats() 74 proto, sum, sum / STATS_INTERVAL_S); in poll_stats() 75 memcpy(prev[proto], values, sizeof(values)); in poll_stats()
|
/openbmc/linux/include/linux/ |
H A D | if_bridge.h | 30 __be16 proto; member 77 bool br_multicast_has_querier_anywhere(struct net_device *dev, int proto); 78 bool br_multicast_has_querier_adjacent(struct net_device *dev, int proto); 79 bool br_multicast_has_router_adjacent(struct net_device *dev, int proto); 89 int proto) in br_multicast_has_querier_anywhere() argument 94 int proto) in br_multicast_has_querier_adjacent() argument 100 int proto) in br_multicast_has_router_adjacent() argument
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | checksum.h | 58 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 66 s += proto + len; in csum_tcpudp_nofold() 68 s += (proto + len) << 8; in csum_tcpudp_nofold() 79 : "r" (daddr), "r"(saddr), "r"(proto + len), "0"(sum)); in csum_tcpudp_nofold() 89 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument 91 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic() 218 __u32 len, __u8 proto, __wsum sum);
|
/openbmc/linux/net/netfilter/ |
H A D | xt_CT.c | 61 return e->ip.proto; in xt_ct_find_proto() 67 return e->ipv6.proto; in xt_ct_find_proto() 78 u8 proto; in xt_ct_set_helper() local 80 proto = xt_ct_find_proto(par); in xt_ct_set_helper() 81 if (!proto) { in xt_ct_set_helper() 87 proto); in xt_ct_set_helper() 109 u8 proto; in xt_ct_set_timeout() local 111 proto = xt_ct_find_proto(par); in xt_ct_set_timeout() 112 if (!proto) { in xt_ct_set_timeout() 117 l4proto = nf_ct_l4proto_find(proto); in xt_ct_set_timeout()
|
H A D | nft_compat.c | 152 entry->e4.ip.proto = proto; in nft_target_set_tgchk_param() 156 if (proto) in nft_target_set_tgchk_param() 159 entry->e6.ipv6.proto = proto; in nft_target_set_tgchk_param() 163 entry->ebt.ethproto = (__force __be16)proto; in nft_target_set_tgchk_param() 226 *proto = l4proto; in nft_parse_compat() 250 u16 proto = 0; in nft_target_init() local 267 ret = xt_check_target(&par, size, proto, inv); in nft_target_init() 453 entry->e4.ip.proto = proto; in nft_match_set_mtchk_param() 457 if (proto) in nft_match_set_mtchk_param() 460 entry->e6.ipv6.proto = proto; in nft_match_set_mtchk_param() [all …]
|
/openbmc/linux/drivers/s390/net/ |
H A D | qeth_l3_main.c | 49 if (proto == QETH_PROT_IPV4) in qeth_l3_ipaddr_to_string() 103 if (addr->proto != ipatoe->proto) in qeth_l3_is_addr_covered_by_ipato() 329 if (addr->proto == QETH_PROT_IPV6) { in qeth_l3_send_setdelmc() 542 if (ipatoe->proto != new->proto) in qeth_l3_add_ipato_entry() 574 if (ipatoe->proto != proto) in qeth_l3_del_ipato_entry() 598 if (proto == QETH_PROT_IPV4) in qeth_l3_modify_rxip_vipa() 1566 __be16 proto) in qeth_l3_get_cast_type_rcu() argument 1585 switch (proto) { in qeth_l3_get_cast_type_rcu() 1646 if (proto == htons(ETH_P_IP)) in qeth_l3_fill_header() 1671 switch (proto) { in qeth_l3_fill_header() [all …]
|
/openbmc/linux/arch/microblaze/include/asm/ |
H A D | checksum.h | 17 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 26 "d" ((len + proto) << 8) in csum_tcpudp_nofold() 28 "d" (len + proto) in csum_tcpudp_nofold()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | vrf-xfrm-tests.sh | 223 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel 228 tmpl src ${HOST1_4} dst ${HOST2_4} proto esp mode tunnel 233 tmpl src ${HOST2_4} dst ${HOST1_4} proto esp mode tunnel 265 proto esp spi ${SPI_1} reqid 0 mode tunnel \ 272 proto esp spi ${SPI_1} reqid 0 mode tunnel \ 280 proto esp spi ${SPI_2} reqid 0 mode tunnel \ 287 proto esp spi ${SPI_2} reqid 0 mode tunnel \ 295 proto esp spi ${SPI_1} reqid 0 mode tunnel \ 302 proto esp spi ${SPI_1} reqid 0 mode tunnel \ 310 proto esp spi ${SPI_2} reqid 0 mode tunnel \ [all …]
|
/openbmc/linux/net/dsa/ |
H A D | tag_rtl8_4.c | 156 u8 proto; in rtl8_4_read_tag() local 170 proto = FIELD_GET(RTL8_4_PROTOCOL, ntohs(tag16[1])); in rtl8_4_read_tag() 171 if (unlikely(proto != RTL8_4_PROTOCOL_RTL8365MB)) { in rtl8_4_read_tag() 174 proto); in rtl8_4_read_tag() 232 .proto = DSA_TAG_PROTO_RTL8_4, 245 .proto = DSA_TAG_PROTO_RTL8_4T,
|
/openbmc/linux/tools/testing/selftests/bpf/bpf_testmod/ |
H A D | bpf_testmod-events.h | 39 #define BPF_TESTMOD_DECLARE_TRACE(call, proto, args, size) \ argument 40 DECLARE_TRACE_WRITABLE(call, PARAMS(proto), PARAMS(args), size) 42 #define BPF_TESTMOD_DECLARE_TRACE(call, proto, args, size) \ argument 43 DECLARE_TRACE(call, PARAMS(proto), PARAMS(args))
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-devtrace.h | 77 #define TRACE_EVENT(name, proto, ...) \ argument 78 static inline void trace_ ## name(proto) {} 82 #define DEFINE_EVENT(evt_class, name, proto, ...) \ argument 83 static inline void trace_ ## name(proto) {}
|
/openbmc/linux/net/handshake/ |
H A D | request.c | 109 struct handshake_req *handshake_req_alloc(const struct handshake_proto *proto, in handshake_req_alloc() argument 114 if (!proto) in handshake_req_alloc() 116 if (proto->hp_handler_class <= HANDSHAKE_HANDLER_CLASS_NONE) in handshake_req_alloc() 118 if (proto->hp_handler_class >= HANDSHAKE_HANDLER_CLASS_MAX) in handshake_req_alloc() 120 if (!proto->hp_accept || !proto->hp_done) in handshake_req_alloc() 123 req = kzalloc(struct_size(req, hr_priv, proto->hp_privsize), flags); in handshake_req_alloc() 128 req->hr_proto = proto; in handshake_req_alloc()
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_state.c | 1006 x->id.proto != proto || in __xfrm_state_lookup_all() 1031 x->id.proto != proto || in __xfrm_state_lookup() 1055 x->id.proto != proto || in __xfrm_state_lookup_byaddr() 1185 tmpl->id.proto == x->id.proto && in xfrm_state_find() 1219 tmpl->id.proto == x->id.proto && in xfrm_state_find() 1379 proto == x->id.proto && in xfrm_stateonly_find() 1510 x->id.proto != proto || in __find_acq_core() 1546 x->id.proto = proto; in __find_acq_core() 1769 x->id.proto != m->proto) in xfrm_migrate_state_find() 1788 x->id.proto != m->proto) in xfrm_migrate_state_find() [all …]
|
/openbmc/linux/net/netfilter/ipset/ |
H A D | ip_set_hash_netportnet.c | 56 u8 proto; member 69 ip1->proto == ip2->proto; in hash_netportnet4_data_equal() 166 &e.port, &e.proto)) in hash_netportnet4_kadt() 237 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netportnet4_uadt() 240 if (e.proto == 0) in hash_netportnet4_uadt() 246 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_netportnet4_uadt() 347 u8 proto; member 361 ip1->proto == ip2->proto; in hash_netportnet6_data_equal() 461 &e.port, &e.proto)) in hash_netportnet6_kadt() 526 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netportnet6_uadt() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | ip6_checksum.c | 10 __u32 len, __u8 proto, __wsum csum) in csum_ipv6_magic() argument 55 uproto = (__force u32)htonl(proto); in csum_ipv6_magic() 65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) in udp6_csum_init() argument 72 if (proto == IPPROTO_UDPLITE) { in udp6_csum_init() 78 skb->csum = ip6_compute_pseudo(skb, proto); in udp6_csum_init() 91 err = (__force int)skb_checksum_init_zero_check(skb, proto, uh->check, in udp6_csum_init()
|
/openbmc/linux/arch/ia64/lib/ |
H A D | checksum.c | 39 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument 43 (__force u64)sum + ((len + proto) << 8)); in csum_tcpudp_magic() 50 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument 55 (__force u64)sum + ((len + proto) << 8); in csum_tcpudp_nofold()
|
/openbmc/openbmc/poky/bitbake/lib/bb/fetch2/ |
H A D | osc.py | 66 proto = ud.parm.get('protocol', 'https') 78 …osccmd = "%s %s -A %s://%s co %s/%s %s" % (basecmd, config, proto, ud.host, coroot, ud.module, " "… 80 osccmd = "%s %s -A %s://%s up %s" % (basecmd, config, proto, ud.host, " ".join(options)) 82 …osccmd = "%s %s -A %s://%s api source/%s/%s" % (basecmd, config, proto, ud.host, coroot, ud.module) 152 proto = ud.parm.get('protocol', 'https') 154 f.write("apiurl = %s://%s\n" % (proto, ud.host)) 160 f.write("[%s://%s]\n" % (proto, ud.host))
|
/openbmc/linux/arch/csky/include/asm/ |
H A D | checksum.h | 26 unsigned short len, unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument 37 "r"(proto + len), in csum_tcpudp_nofold() 39 "r"((proto + len) << 8), in csum_tcpudp_nofold()
|
/openbmc/linux/net/ipv4/netfilter/ |
H A D | ipt_ECN.c | 56 tcph->ece == einfo->proto.tcp.ece) && in set_ect_tcp() 58 tcph->cwr == einfo->proto.tcp.cwr)) in set_ect_tcp() 67 tcph->ece = einfo->proto.tcp.ece; in set_ect_tcp() 69 tcph->cwr = einfo->proto.tcp.cwr; in set_ect_tcp() 105 (e->ip.proto != IPPROTO_TCP || (e->ip.invflags & XT_INV_PROTO))) { in ecn_tg_check()
|
/openbmc/linux/include/trace/events/ |
H A D | fib6.h | 32 __field( u8, proto ) 55 __entry->proto = flp->flowi6_proto; 56 if (__entry->proto == IPPROTO_TCP || 57 __entry->proto == IPPROTO_UDP) { 80 __entry->tb_id, __entry->oif, __entry->iif, __entry->proto,
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | filter.h | 207 efx_filter_set_ipv4_local(struct efx_filter_spec *spec, u8 proto, in efx_filter_set_ipv4_local() argument 214 spec->ip_proto = proto; in efx_filter_set_ipv4_local() 228 efx_filter_set_ipv6_local(struct efx_filter_spec *spec, u8 proto, in efx_filter_set_ipv6_local() argument 235 spec->ip_proto = proto; in efx_filter_set_ipv6_local() 251 efx_filter_set_ipv4_full(struct efx_filter_spec *spec, u8 proto, in efx_filter_set_ipv4_full() argument 260 spec->ip_proto = proto; in efx_filter_set_ipv4_full()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sk_assign.c | 61 __u8 proto = 0; in get_tuple() local 77 proto = iph->protocol; in get_tuple() 86 proto = ip6h->nexthdr; in get_tuple() 93 if (proto != IPPROTO_TCP && proto != IPPROTO_UDP) in get_tuple() 96 *tcp = (proto == IPPROTO_TCP); in get_tuple()
|