diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-04-30 12:52:10 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-04-30 13:35:06 +0200 |
commit | 3e3e6d2ef4c1b120077378fe32dc0a88ee81f38e (patch) | |
tree | 62adc130a22be5f590b0c0174a02775b828b7be1 /print-bootp.c | |
parent | f7530ee4d5f7d05ee0185c1d166103a3f698a797 (diff) | |
download | tcpdump-3e3e6d2ef4c1b120077378fe32dc0a88ee81f38e.tar.gz |
Rename the fn_printX() functions to nd_printX()
The functions are: nd_print, nd_printztn, nd_printn and nd_printzp.
Trying to make it clearer that they currently have to be used only on part
of the packet buffer.
Update some comments.
Diffstat (limited to 'print-bootp.c')
-rw-r--r-- | print-bootp.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/print-bootp.c b/print-bootp.c index aef7063c..78d0d2fe 100644 --- a/print-bootp.c +++ b/print-bootp.c @@ -361,8 +361,8 @@ bootp_print(netdissect_options *ndo, ND_TCHECK_1(bp->bp_sname); /* check first char only */ if (EXTRACT_U_1(bp->bp_sname)) { ND_PRINT("\n\t sname \""); - if (fn_printztn(ndo, bp->bp_sname, (u_int)sizeof(bp->bp_sname), - ndo->ndo_snapend)) { + if (nd_printztn(ndo, bp->bp_sname, (u_int)sizeof(bp->bp_sname), + ndo->ndo_snapend)) { ND_PRINT("\""); ND_PRINT("%s", tstr + 1); return; @@ -372,8 +372,8 @@ bootp_print(netdissect_options *ndo, ND_TCHECK_1(bp->bp_file); /* check first char only */ if (EXTRACT_U_1(bp->bp_file)) { ND_PRINT("\n\t file \""); - if (fn_printztn(ndo, bp->bp_file, (u_int)sizeof(bp->bp_file), - ndo->ndo_snapend)) { + if (nd_printztn(ndo, bp->bp_file, (u_int)sizeof(bp->bp_file), + ndo->ndo_snapend)) { ND_PRINT("\""); ND_PRINT("%s", tstr + 1); return; @@ -712,7 +712,7 @@ rfc1048_print(netdissect_options *ndo, case 'a': /* ASCII strings */ ND_PRINT("\""); - if (fn_printn(ndo, bp, len, ndo->ndo_snapend)) { + if (nd_printn(ndo, bp, len, ndo->ndo_snapend)) { ND_PRINT("\""); goto trunc; } @@ -853,7 +853,7 @@ rfc1048_print(netdissect_options *ndo, ND_PRINT("%u/%u ", EXTRACT_U_1(bp), EXTRACT_U_1(bp + 1)); bp += 2; ND_PRINT("\""); - if (fn_printn(ndo, bp, len - 3, ndo->ndo_snapend)) { + if (nd_printn(ndo, bp, len - 3, ndo->ndo_snapend)) { ND_PRINT("\""); goto trunc; } @@ -876,7 +876,7 @@ rfc1048_print(netdissect_options *ndo, len--; if (type == 0) { ND_PRINT("\""); - if (fn_printn(ndo, bp, len, ndo->ndo_snapend)) { + if (nd_printn(ndo, bp, len, ndo->ndo_snapend)) { ND_PRINT("\""); goto trunc; } @@ -922,7 +922,7 @@ rfc1048_print(netdissect_options *ndo, case AGENT_SUBOPTION_CIRCUIT_ID: /* fall through */ case AGENT_SUBOPTION_REMOTE_ID: case AGENT_SUBOPTION_SUBSCRIBER_ID: - if (fn_printn(ndo, bp, suboptlen, ndo->ndo_snapend)) + if (nd_printn(ndo, bp, suboptlen, ndo->ndo_snapend)) goto trunc; break; @@ -1020,7 +1020,7 @@ rfc1048_print(netdissect_options *ndo, break; } ND_PRINT("\""); - if (fn_printn(ndo, bp, suboptlen, ndo->ndo_snapend)) { + if (nd_printn(ndo, bp, suboptlen, ndo->ndo_snapend)) { ND_PRINT("\""); goto trunc; } |