Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [5.0_RC3] pppd: Couldn't add proxy arp entry: Invalid argument




On Apr 1, 2009, at 15:45 , Greg Troxel wrote:


 Mar 30 16:32:51 wotan pppd[5277]: Couldn't add proxy arp entry:
 Invalid argument
 Mar 30 16:32:51 wotan pppd[5277]: local  IP address 192.168.0.1
 Mar 30 16:32:51 wotan pppd[5277]: remote IP address 10.99.3.16

Is 10.99.3.16 within a prefix on sk0?

Yes:   inet 10.99.1.65 netmask 0xffff0000 broadcast 10.99.255.255

I would add debugging to print the structure in the call to add the entry.



line 1577 in src/usr.sbin/pppd/pppd/sys-bsd.c:

static struct {
    struct rt_msghdr            hdr;
    struct sockaddr_inarp       dst;
    struct sockaddr_dl          hwa;
    char                        extra[128];
} arpmsg;


Looks OK to me:

0x53cf80: 99 rtm_msglen         153
0x53cf81: 00
0x53cf82: 03 rtm_version        3
0x53cf83: 01 rtm_type           RTM_ADD
0x53cf84: 00 rtm_index
0x53cf88: 04 rtm_flags          RTF_ANNOUNCE | RTF_HOST | RTF_STATIC
0x53cf89: 48
0x53cf8c: 03 rtm_addrs          RTA_DST | RTA_GATEWAY
0x53cf94: 01 rtm_seq            1
0x53cfa0: 04 rtm_inits          RTV_EXPIRE
0x53cff8: 10 sin_len            0x10
0x53cff9: 02 sin_family         AF_INET
0x53cffa: 00 sin_port           0
0x53cffc: 0a sin_addr.s_addr    10.99.3.16
0x53cffd: 63
0x53cffe: 03
0x53cfff: 10
0x53d006: 01 dst.sin_other      SIN_PROXY
0x53d008: 11 sdl_len            0x11
0x53d009: 12 sdl_family         AF_LINK
0x53d00a: 01 sdl_index          1
0x53d00c: 06 sdl_type           6
0x53d00d: 03 sdl_nlen           3
0x53d00e: 06 sdl_alen           6
0x53d00f: 00 sdl_slen           0
0x53d010: 73 sdl_data           's'
0x53d011: 6b                    'k'
0x53d012: 30                    '0'
0x53d013: 00                    00:0d:88:6f:2d:37 (MAC addr of sk0)
0x53d014: 0d
0x53d015: 88
0x53d016: 6f
0x53d017: 2d
0x53d018: 37

(All locations not listed are zero)


--
    aew



Home | Main Index | Thread Index | Old Index