Searched refs:proto_num (Results 1 – 5 of 5) sorted by relevance
37 int register_pppox_proto(int proto_num, const struct pppox_proto *pp) in register_pppox_proto() argument39 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() argument49 if (proto_num >= 0 && proto_num <= PX_MAX_PROTO) in unregister_pppox_proto()50 pppox_protos[proto_num] = NULL; in unregister_pppox_proto()
81 u16 proto_num = 0; in set_av_attr() local94 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()
77 extern int register_pppox_proto(int proto_num, const struct pppox_proto *pp);78 extern void unregister_pppox_proto(int proto_num);
648 uint8_t _daddr, proto_num; in arcnet_header() local682 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()
373 def __init__(self, family_name, proto_num): argument375 self.proto_num = proto_num486 self.sock = socket.socket(socket.AF_NETLINK, socket.SOCK_RAW, self.nlproto.proto_num)