Bill Fenner

Results 57 comments of Bill Fenner

Neat optimizer bug. If you add "-O", your filter works as desired.

As requested, opened #1002 and #1003 for the two different parts.

I have thought about this some - I was going to try to solve it outside of libpcap as follows: - compile each program, with the snaplen reflecting the return...

This is actually surprisingly easy. (I guess I'm the one with something up my sleeve). Here's my current output from the supplied pcap: ``` 10.0.0.1.67 > 10.0.0.245.68: [udp sum ok]...

I see that the DHCP6 option is space separated with no quotes: ```C case DH6OPT_DOMAIN_LIST: tp = (const u_char *)(dh6o + 1); while (tp < cp + sizeof(*dh6o) + optlen)...

> remove quotes for option 15 ? I'm always a little hesitant to change existing output, for fear of people who write scripts that `tcpdump | awk` (however wise that...

> Why need for fqdn_print2() and not for DHCP6 ? DHCP6 should be converted to fqdn_print2(). With fqdn_print() a badly encoded DNS name in the middle of an option can...

Here's an example of using `fqdn_print()` with the arguments that dhcp6 passes: I modified the packet dump to swap the Domain-Name and Domain-Search options, and changed the code to not...

> Even with ? > > ```c > + if((tp = fqdn_print(ndo, tp, bp)) == NULL) > + goto trunc; > ``` I used `fqdn_print(ndo, tp, ep)` to mimic how...

> Could you confirm `fqdn_print()` is going to handle compression and splitting correctly in this case? In the example pcap, `fqdn_print2()` handles ``` 00000880: 77 ..N............w 00000890: 1509 7665 6c6f...