version 1.13, 2022/08/13 18:44:02
|
version 1.15, 2022/08/18 12:34:00
|
Line 277 int
|
Line 277 int
|
fwsync_alias_sync(const void *arg, const void *extdata) |
fwsync_alias_sync(const void *arg, const void *extdata) |
{ |
{ |
struct fws_sndpkt *pkt; |
struct fws_sndpkt *pkt; |
|
const struct cfg_nat *t = arg; |
|
|
DTRACE(); |
DTRACE(); |
|
|
Line 294 fwsync_alias_sync(const void *arg, const void *extdata
|
Line 295 fwsync_alias_sync(const void *arg, const void *extdata
|
return EAGAIN; |
return EAGAIN; |
} |
} |
|
|
// TODO: xxx | printf("%s: pkt=%p t=%p\n", __func__, pkt, t->if_name); |
printf("%s: pkt=%p\n", __func__, pkt); | |
| LIBALIAS_LOCK(t->lib); |
| AddLink(t->lib, pkt->sp_proto.fws_saddr, pkt->sp_proto.fws_daddr, pkt->sp_proto.fws_aaddr, |
| pkt->sp_proto.fws_sport, pkt->sp_proto.fws_dport, pkt->sp_proto.fws_aport, |
| pkt->sp_proto.fws_linktype | LINK_SYNC_MASK); |
| LIBALIAS_UNLOCK(t->lib); |
|
|
free(pkt, M_FWSYNC); |
free(pkt, M_FWSYNC); |
return 0; |
return 0; |