Home
last modified time | relevance | path

Searched refs:proto_num (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/drivers/net/ppp/
Dpppox.c37 int register_pppox_proto(int proto_num, const struct pppox_proto *pp) in register_pppox_proto() argument
39 if (proto_num < 0 || proto_num > PX_MAX_PROTO) in register_pppox_proto()
41 if (pppox_protos[proto_num]) in register_pppox_proto()
43 pppox_protos[proto_num] = pp; in register_pppox_proto()
47 void unregister_pppox_proto(int proto_num) in unregister_pppox_proto() argument
49 if (proto_num >= 0 && proto_num <= PX_MAX_PROTO) in unregister_pppox_proto()
50 pppox_protos[proto_num] = NULL; in unregister_pppox_proto()
/linux-6.12.1/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c81 u16 proto_num = 0; in set_av_attr() local
94 proto_num = ocrdma_hdr_type_to_proto_num(dev->id, ah->hdr_type); in set_av_attr()
95 if (!proto_num) in set_av_attr()
97 nxthdr = (proto_num == ETH_P_IBOE) ? 0x1b : 0x11; in set_av_attr()
109 eth.roce_eth_type = cpu_to_be16(proto_num); in set_av_attr()
115 eth.eth_type = cpu_to_be16(proto_num); in set_av_attr()
/linux-6.12.1/include/linux/
Dif_pppox.h77 extern int register_pppox_proto(int proto_num, const struct pppox_proto *pp);
78 extern void unregister_pppox_proto(int proto_num);
/linux-6.12.1/drivers/net/arcnet/
Darcnet.c648 uint8_t _daddr, proto_num; in arcnet_header() local
682 proto_num = lp->default_proto[_daddr]; in arcnet_header()
683 proto = arc_proto_map[proto_num]; in arcnet_header()
685 proto_num, proto->suffix); in arcnet_header()
/linux-6.12.1/tools/net/ynl/lib/
Dynl.py373 def __init__(self, family_name, proto_num): argument
375 self.proto_num = proto_num
486 self.sock = socket.socket(socket.AF_NETLINK, socket.SOCK_RAW, self.nlproto.proto_num)