Lines Matching defs:port
80 static void pppol2tp_input(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port);
81 static void pppol2tp_dispatch_control_packet(pppol2tp_pcb *l2tp, u16_t port, struct pbuf *p, u16_t ns, u16_t nr);
110 struct netif *netif, const ip_addr_t *ipaddr, u16_t port,
147 l2tp->remote_port = port;
302 /* Listen to a random source port, we need to do that instead of using udp_connect()
303 * because the L2TP LNS might answer with its own random source port (!= 1701)
345 static void pppol2tp_input(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) {
360 /* discard packet if port mismatch, but only if we received a SCCRP */
361 if (l2tp->phase > PPPOL2TP_STATE_SCCRQ_SENT && l2tp->tunnel_port != port) {
447 pppol2tp_dispatch_control_packet(l2tp, port, p, ns, nr);
486 static void pppol2tp_dispatch_control_packet(pppol2tp_pcb *l2tp, u16_t port, struct pbuf *p, u16_t ns, u16_t nr) {
690 l2tp->tunnel_port = port; /* LNS server might have chosen its own local port */