Searched refs:protocol (Results 1 - 25 of 226) sorted by relevance

12345678910

/vpp/src/plugins/lb/test/
H A Dvpp_lb.py20 def __init__(self, test, pfx, sfx, port, protocol):
25 self.protocol = protocol
31 protocol=self.protocol)
39 protocol=self.protocol,
46 protocol=self.protocol)
51 def __init__(self, test, pfx, port, protocol, app_sr
[all...]
/vpp/src/vnet/gre/
H A Dpg.c25 pg_edit_t protocol; member in struct:__anon1222
32 pg_edit_init (&e->protocol, gre_header_t, protocol);
51 unformat_gre_protocol_net_byte_order, &h->protocol))
59 if (h->protocol.type == PG_EDIT_FIXED)
61 u16 t = *(u16 *) h->protocol.values[PG_EDIT_LO];
/vpp/src/vnet/hdlc/
H A Dpg.c48 pg_edit_t protocol; member in struct:__anon1237
56 pg_edit_init (&e->protocol, hdlc_header_t, protocol);
76 unformat_hdlc_protocol_net_byte_order, &h->protocol))
84 if (h->protocol.type == PG_EDIT_FIXED)
86 u16 t = *(u16 *) h->protocol.values[PG_EDIT_LO];
H A Dhdlc.h62 /* HDLC protocol type in host byte order. */
63 hdlc_protocol_t protocol; member in struct:__anon1230
78 /* Hash tables mapping name/protocol to protocol info index. */
83 hdlc_get_protocol_info (hdlc_main_t * em, hdlc_protocol_t protocol) argument
85 uword *p = hash_get (em->protocol_info_by_protocol, protocol);
94 hdlc_protocol_t protocol, u32 node_index);
100 /* Parse hdlc protocol as 0xXXXX or protocol name.
122 hdlc_protocol_t protocol, u3
[all...]
H A Dhdlc.c67 hdlc_protocol_t p = clib_net_to_host_u16 (h->protocol);
104 /* Returns hdlc protocol as an int in host byte order. */
127 *result = pi->protocol;
157 h->protocol = clib_host_to_net_u16 (p);
178 hdlc_protocol_t protocol; local
182 #define _(a,b) case VNET_LINK_##a: protocol = HDLC_PROTOCOL_##b; break
195 h->protocol = clib_host_to_net_u16 (protocol);
211 add_protocol (hdlc_main_t * pm, hdlc_protocol_t protocol, char *protocol_name) argument
220 pi->protocol
[all...]
H A Dpacket.h67 /* Layer 3 protocol for this packet. */
68 u16 protocol; member in struct:__anon1236
/vpp/src/vnet/osi/
H A Dpg.c46 pg_edit_t protocol; member in struct:__anon1767
52 pg_edit_init (&e->protocol, osi_header_t, protocol);
68 unformat_pg_edit, unformat_osi_protocol, &h->protocol))
76 if (h->protocol.type == PG_EDIT_FIXED)
78 u8 t = *h->protocol.values[PG_EDIT_LO];
H A Dosi.h77 u8 protocol; member in struct:__anon1763
87 /* OSI protocol (SAP type). */
88 osi_protocol_t protocol; member in struct:__anon1764
99 _ (UNKNOWN_PROTOCOL, "unknown osi protocol")
115 /* Hash tables mapping name/protocol to protocol info index. */
118 /* osi-input next index indexed by protocol. */
123 osi_get_protocol_info (osi_main_t * m, osi_protocol_t protocol) argument
125 uword *p = hash_get (m->protocol_info_by_protocol, protocol);
132 void osi_register_input_protocol (osi_protocol_t protocol, u3
[all...]
H A Dosi.c67 osi_protocol_t p = h->protocol;
99 /* Returns osi protocol as an int in host byte order. */
121 *result = pi->protocol;
138 h->protocol = p;
153 add_protocol (osi_main_t * pm, osi_protocol_t protocol, char *protocol_name) argument
162 pi->protocol = protocol;
165 hash_set (pm->protocol_info_by_protocol, protocol, i);
/vpp/src/vnet/ppp/
H A Dpg.c48 pg_edit_t protocol; member in struct:__anon1797
56 pg_edit_init (&e->protocol, ppp_header_t, protocol);
76 unformat_ppp_protocol_net_byte_order, &h->protocol))
84 if (h->protocol.type == PG_EDIT_FIXED)
86 u16 t = *(u16 *) h->protocol.values[PG_EDIT_LO];
H A Dppp.h62 /* PPP protocol type in host byte order. */
63 ppp_protocol_t protocol; member in struct:__anon1799
78 /* Hash tables mapping name/protocol to protocol info index. */
83 ppp_get_protocol_info (ppp_main_t * em, ppp_protocol_t protocol) argument
85 uword *p = hash_get (em->protocol_info_by_protocol, protocol);
94 ppp_protocol_t protocol, u32 node_index);
100 /* Parse ppp protocol as 0xXXXX or protocol name.
122 ppp_protocol_t protocol, u3
[all...]
H A Dppp.c67 ppp_protocol_t p = clib_net_to_host_u16 (h->protocol);
104 /* Returns ppp protocol as an int in host byte order. */
127 *result = pi->protocol;
157 h->protocol = clib_host_to_net_u16 (p);
178 ppp_protocol_t protocol; local
182 #define _(a,b) case VNET_LINK_##a: protocol = PPP_PROTOCOL_##b; break
195 h->protocol = clib_host_to_net_u16 (protocol);
211 add_protocol (ppp_main_t * pm, ppp_protocol_t protocol, char *protocol_name) argument
220 pi->protocol
[all...]
/vpp/src/vnet/snap/
H A Dpg.c47 pg_edit_t protocol; member in struct:__anon1859
54 pg_edit_init (&e->protocol, snap_header_t, protocol);
71 unformat_snap_protocol, &h->oui, &h->protocol))
79 if (h->oui.type == PG_EDIT_FIXED && h->protocol.type == PG_EDIT_FIXED)
82 u8 *p = h->protocol.values[PG_EDIT_LO];
88 h.protocol = *(u16 *) p;
H A Dsnap.c51 u16 protocol = clib_net_to_host_u16 (h->protocol); local
53 switch (protocol)
64 return format (s, "unknown 0x%x", protocol);
72 u16 protocol = clib_net_to_host_u16 (h->protocol); local
77 return format (s, "ethernet %U", format_ethernet_type, h->protocol);
83 return format (s, "oui 0x%06x 0x%04x", oui, protocol);
124 /* Returns snap protocol as an int in host byte order. */
134 if (unformat (input, "0x%x 0x%x", &p.oui, &p.protocol))
[all...]
H A Dsnap.h84 /* Per-OUI protocol. */
85 u16 protocol;
95 u32 protocol; member in struct:__anon1863
115 u16 protocol = p->protocol; local
117 h->protocol = clib_host_to_net_u16 (protocol);
125 _ (UNKNOWN_PROTOCOL, "unknown oui/snap protocol")
139 /* Vector of known SNAP oui/protocol pairs. */
142 /* Hash table mapping oui/protocol t
[all...]
/vpp/src/plugins/ioam/lib-vxlan-gpe/
H A Dvxlan_gpe_ioam_packet.h37 u8 protocol; member in struct:__anon258
/vpp/src/vnet/ip/
H A Dip6_hop_by_hop_packet.h21 u8 protocol; member in struct:__anon1345
H A Dip6_pg.c100 pg_edit_t protocol; member in struct:__anon1370
112 _(protocol);
147 unformat_ip_protocol, &p->protocol,
174 /* Can't parse input: try next protocol level. */
181 ip_protocol_t protocol; local
185 if (p->protocol.type == PG_EDIT_FIXED)
187 protocol = pg_edit_get_value (&p->protocol, PG_EDIT_LO);
188 pi = ip_get_protocol_info (im, protocol);
H A Dformat.c42 /* Format IP protocol. */
46 ip_protocol_t protocol = va_arg (*args, int); // int promo of ip_protocol_t); local
48 ip_protocol_info_t *pi = ip_get_protocol_info (im, protocol);
53 return format (s, "unknown %d", protocol);
69 *result = pi->protocol;
H A Dpunt.c147 u8 protocol, u16 port, char *client_pathname)
153 if (protocol != IP_PROTOCOL_UDP)
155 "only UDP protocol (%d) is supported, got %d",
156 IP_PROTOCOL_UDP, protocol);
173 c->reg.punt.l4.protocol = protocol;
204 c->reg.punt.ip_proto.protocol = proto;
244 ip_protocol_t protocol, u16 port)
313 pr->punt.l4.protocol,
318 pr->punt.ip_proto.protocol,
145 punt_socket_register_l4(vlib_main_t * vm, ip_address_family_t af, u8 protocol, u16 port, char *client_pathname) argument
243 punt_socket_unregister_l4(ip_address_family_t af, ip_protocol_t protocol, u16 port) argument
369 punt_l4_add_del(vlib_main_t * vm, ip_address_family_t af, ip_protocol_t protocol, u16 port, bool is_add) argument
[all...]
H A Dip4_to_ip6.h57 if (PREDICT_TRUE ((ip->protocol == IP_PROTOCOL_TCP) ||
58 (ip->protocol == IP_PROTOCOL_UDP)))
63 else if (ip->protocol == IP_PROTOCOL_ICMP)
73 if (PREDICT_TRUE ((ip->protocol == IP_PROTOCOL_TCP) ||
74 (ip->protocol == IP_PROTOCOL_UDP)))
79 else if (ip->protocol == IP_PROTOCOL_ICMP)
304 if (PREDICT_TRUE (inner_ip4->protocol == IP_PROTOCOL_TCP))
312 else if (PREDICT_TRUE (inner_ip4->protocol == IP_PROTOCOL_UDP))
321 else if (inner_ip4->protocol == IP_PROTOCOL_ICMP)
330 inner_ip4->protocol
[all...]
/vpp/src/plugins/nat/lib/
H A Dalloc.h37 u16 protocol,
83 u16 protocol,
92 u16 protocol, nat_ip4_addr_port_t * out);
97 u16 protocol, nat_ip4_addr_port_t * in);
/vpp/src/plugins/lb/
H A Dlb_test.c125 u8 protocol = 0; local
146 else if (unformat(line_input, "protocol tcp"))
148 protocol = IP_PROTOCOL_TCP;
150 else if (unformat(line_input, "protocol udp"))
152 protocol = IP_PROTOCOL_UDP;
195 mp->protocol = (u8)protocol;
220 u8 protocol = 0; local
246 else if (unformat(line_input, "protocol tcp"))
248 protocol
399 u8 protocol = 0; local
[all...]
/vpp/src/vnet/llc/
H A Dllc.h111 /* LLC protocol (SAP type). */
112 llc_protocol_t protocol; member in struct:__anon1707
140 /* Hash tables mapping name/protocol to protocol info index. */
143 /* llc-input next index indexed by protocol. */
148 llc_get_protocol_info (llc_main_t * m, llc_protocol_t protocol) argument
150 uword *p = hash_get (m->protocol_info_by_protocol, protocol);
159 llc_protocol_t protocol, u32 node_index);
165 /* Parse llc protocol as 0xXXXX or protocol nam
[all...]
/vpp/src/vnet/vxlan-gpe/
H A Dvxlan_gpe_packet.h38 * protocol field.
43 * protocol details are out of scope for this document. As with the
61 * @brief VXLAN GPE support inner protocol definition.
76 * @brief Struct for VXLAN GPE support inner protocol definition.
102 u8 protocol; member in struct:__anon2000

Completed in 21 milliseconds

12345678910