• Olivier Tilmans's avatar
    libbpf: Support unbound raw socket creation · 830d58d9
    Olivier Tilmans authored
    Passing a NULL (or empty) char string to bpf_open_raw_sock() will skip
    the bind call on the newly created raw socket. This can create sniffers
    for all interfaces using a single socket filter.
    
    The dns_matching example has been updated to default to 'any' interface
    if noone is specified in the arguments.
    830d58d9
libbpf.h 9.21 KB