diff options
author | thompsa <thompsa@FreeBSD.org> | 2006-12-11 23:46:40 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2006-12-11 23:46:40 +0000 |
commit | a68b5db0667c09becd1a6c1980cb9eabf075be97 (patch) | |
tree | f64c9494a36368f4740ab3fbefea5606db6a1f61 /sbin/ifconfig/ifbridge.c | |
parent | a3a728eabb31b5ce3771f41c9b9b0bab5dbde992 (diff) | |
download | FreeBSD-src-a68b5db0667c09becd1a6c1980cb9eabf075be97.zip FreeBSD-src-a68b5db0667c09becd1a6c1980cb9eabf075be97.tar.gz |
These days P2P means peer-2-peer (also well known from serveral filesharing
protocols) while PointToPoint has been PtP links. Change the variables
accordingly while the code is still fresh and undocumented.
Requested by: bz
Diffstat (limited to 'sbin/ifconfig/ifbridge.c')
-rw-r--r-- | sbin/ifconfig/ifbridge.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sbin/ifconfig/ifbridge.c b/sbin/ifconfig/ifbridge.c index a4cf861..4fa6175 100644 --- a/sbin/ifconfig/ifbridge.c +++ b/sbin/ifconfig/ifbridge.c @@ -413,27 +413,27 @@ unsetbridge_autoedge(const char *val, int d, int s, const struct afswtch *afp) } static void -setbridge_p2p(const char *val, int d, int s, const struct afswtch *afp) +setbridge_ptp(const char *val, int d, int s, const struct afswtch *afp) { - do_bridgeflag(s, val, IFBIF_BSTP_P2P, 1); + do_bridgeflag(s, val, IFBIF_BSTP_PTP, 1); } static void -unsetbridge_p2p(const char *val, int d, int s, const struct afswtch *afp) +unsetbridge_ptp(const char *val, int d, int s, const struct afswtch *afp) { - do_bridgeflag(s, val, IFBIF_BSTP_P2P, 0); + do_bridgeflag(s, val, IFBIF_BSTP_PTP, 0); } static void -setbridge_autop2p(const char *val, int d, int s, const struct afswtch *afp) +setbridge_autoptp(const char *val, int d, int s, const struct afswtch *afp) { - do_bridgeflag(s, val, IFBIF_BSTP_AUTOP2P, 1); + do_bridgeflag(s, val, IFBIF_BSTP_AUTOPTP, 1); } static void -unsetbridge_autop2p(const char *val, int d, int s, const struct afswtch *afp) +unsetbridge_autoptp(const char *val, int d, int s, const struct afswtch *afp) { - do_bridgeflag(s, val, IFBIF_BSTP_AUTOP2P, 0); + do_bridgeflag(s, val, IFBIF_BSTP_AUTOPTP, 0); } static void @@ -681,10 +681,10 @@ static struct cmd bridge_cmds[] = { DEF_CMD_ARG("-edge", unsetbridge_edge), DEF_CMD_ARG("autoedge", setbridge_autoedge), DEF_CMD_ARG("-autoedge", unsetbridge_autoedge), - DEF_CMD_ARG("p2p", setbridge_p2p), - DEF_CMD_ARG("-p2p", unsetbridge_p2p), - DEF_CMD_ARG("autop2p", setbridge_autop2p), - DEF_CMD_ARG("-autop2p", unsetbridge_autop2p), + DEF_CMD_ARG("ptp", setbridge_ptp), + DEF_CMD_ARG("-ptp", unsetbridge_ptp), + DEF_CMD_ARG("autoptp", setbridge_autoptp), + DEF_CMD_ARG("-autoptp", unsetbridge_autoptp), DEF_CMD("flush", 0, setbridge_flush), DEF_CMD("flushall", 0, setbridge_flushall), DEF_CMD_ARG2("static", setbridge_static), |