Lines Matching refs:socket
8 into the socket lookup performed by the transport layer when a packet is to be
11 When invoked BPF sk_lookup program can select a socket that will receive the
20 binding sockets to an address with ``bind()`` socket call is impractical, such
29 Such setups would require creating and ``bind()``'ing one socket to each of the
31 latency spikes during socket lookup.
47 find a listening (TCP) or an unconnected (UDP) socket for an incoming packet.
54 ``SK_PASS`` signifies that the socket lookup should continue on to regular
58 A BPF sk_lookup program can also select a socket to receive the packet by
59 calling ``bpf_sk_assign()`` BPF helper. Typically, the program looks up a socket
62 selection. Selecting a socket only takes effect if the program has terminated
68 1. If any program returned ``SK_PASS`` and selected a valid socket, the socket
69 is used as the result of the socket lookup.
70 2. If more than one program returned ``SK_PASS`` and selected a socket, the last
73 selected a socket, socket lookup fails.
74 4. If all programs returned ``SK_PASS`` and none of them selected a socket,
75 socket lookup continues on.
81 receives information about the packet that triggered the socket lookup. Namely:
87 * the socket that has been selected with ``bpf_sk_assign()``.